﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="trangquanlynganhhoc.aspx.cs" Inherits="webtracuudiem.trangquanlynganhhoc" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .auto-style1 {
            width: 100%;
        }
        .auto-style2 {
            text-align: center;
            font-size: xx-large;
            color: #FF3300;
            background-color: #FF9933;
        }
        .auto-style6 {
        }
        .auto-style9 {
            font-size: smaller;
            background-color: #FF9933;
        }
        .auto-style10 {
            width: 132px;
        }
        .auto-style11 {
            width: 145px;
             text-decoration: none;
        }
       
        .auto-style12 {
            width: 154px;
            font-size: medium;
            background-color: #66FF33;
            height: 26px;
        }
        .auto-style13 {
            width: 145px;
            height: 26px;
        }
        .auto-style14 {
            width: 132px;
            height: 26px;
        }
        .auto-style15 {
            height: 26px;
        }
        .auto-style17 {
            width: 25px;
            height: 22px;
        }
        .auto-style19 {
            background-color: #66FF33;
        }
        .auto-style20 {
            font-size: 11pt;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table id="labPhongDaoTao" class="auto-style1">
        <tr>
            <td class="auto-style2" colspan="3"><strong><span class="auto-style9">QUẢN LÝ NGÀNH HỌC</span></strong></td>
            <td>
                <asp:Button ID="ButThoat" runat="server" Text="Đăng xuất" Width="97px" OnClick="ButThoat_Click" />
            </td>
        </tr>
        <tr>
            <td colspan="2">&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td id="labNhapmanganh" class="auto-style20">Nhập Mã Ngành</td>
            <td>
                <asp:TextBox ID="TextBox1" runat="server" Width="167px"></asp:TextBox>
            </td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td id="labNhaptennganh" class="auto-style20">Nhập Tên Ngành</td>
            <td class="auto-style13">
                <asp:TextBox ID="TextBox2" runat="server" Width="167px"></asp:TextBox>
            </td>
            <td class="auto-style14"></td>
            <td class="auto-style15"></td>
        </tr>
        <tr>
            <td class="auto-style20">Mã khoa</td>
            <td>
                <asp:TextBox ID="TextBox3" runat="server" Width="167px"></asp:TextBox>
            </td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td class="auto-style6"> &nbsp;</td>
            <td class="auto-style11">
                <asp:Button ID="ButThemnganh" runat="server" Text="Thêm Ngành" Width="172px" OnClick="ButThemnganh_Click1" />
            </td>
            <td class="auto-style10">
                <asp:Button ID="ButCapnhat" runat="server" Text="Cập Nhật" Width="161px" />
            </td>
            <td>
                <span><a href="TrangPhongDaoTao.aspx" class="auto-style11"><img alt="" src="images/Arrow_back.png" class="auto-style17" /><span class="auto-style19"> </span><span class="auto-style12">BACK</span></a></span></td>
        </tr>
        <tr>
            <td class="auto-style6" colspan="4"> 
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="MaNganh" DataSourceID="SqlDataSource1">
                    <Columns>
                        <asp:BoundField DataField="MaNganh" HeaderText="Mã ngành" ReadOnly="True" SortExpression="MaNganh" />
                        <asp:BoundField DataField="TenNganh" HeaderText="Tên ngành" SortExpression="TenNganh" />
                        <asp:BoundField DataField="Makhoa" HeaderText="Mã khoa" SortExpression="Makhoa" />
                    </Columns>
                </asp:GridView>
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:Demo1ConnectionString %>" SelectCommand="SELECT * FROM [NganhHoc]"></asp:SqlDataSource>
            </td>
        </tr>
    </table>
</asp:Content>
